﻿@{
    Layout = "~/themes/bootstrap/Shared/_Layout.cshtml";
}
@using UcAsp.Net.Model;
@using UcAsp.Net.BLL;
@using UcAsp.Net.Comm
@using Config = UcAsp.Net.BLL.SettingConfig;

@{
    var Categories = (UcAsp.Net.Model.Categories)ViewData["Categories"];
    ViewBag.Title = Categories.CategorieName;
    ViewBag.KeyWords = Categories.KeyWords;
    ViewBag.Description = Utils.RemoveHtml(Categories.Remark);
}
<ul class="quality">
    @foreach (Subjects sub in SubjectsConfig.GetCategoriesSubjects(2, Config.Theme(Request.UserAgent)))
    {
        <li>
            <ul class="catetilte">
                <li>
                    <h3>@sub.SubjectName<span style="float: right; width: 60px; margin-top: 5px; font-size: 9px;"><a href="/@(Categorie.GetCategorie(sub.Categories).ShowPath)/@{<text>index.shtml</text>}">MORE</a></span></h3>
                </li>
                <li>
                    <img alt="@sub.SubjectName" src="@sub.SubjectImg" /></li>
                <li>
                    <ul class="arttilte">
                        @foreach (ArticelsViews art in ArticlesBLL.GetSubject(sub.SubjectId, 2, Config.Theme(Request.UserAgent)))
                        { 
                            <li>

                                <a href="/@art.CagegorieShowPath/@if (string.IsNullOrEmpty(art.ShowPath))
                                                                 {@art.ID<text>.shtml</text>}
                                                                 else
                                                                 {@art.ShowPath<text>.shtml</text>}">
                                    @(UcAsp.Net.Comm.Utils.ClearPart(art.Title, 20))
                                </a>

                            </li>
                        }
                    </ul>
                    <div style="clear: both"></div>
                </li>
            </ul>
        </li>
  
    }
</ul>
